package test;

public class HuaWei2 {
    public static void main(String[] args) {
        int num = 64;
        System.out.println(getRes(num));
    }

    private static boolean getRes(int num) {
        if (num < 1){
            return false;
        }
        if (num == 1){
            return true;
        }
        if (num % 2 != 0){
            return false;
        } else {
            return getRes(num / 2);
        }
    }
}
